package com.dkd.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品对象 tb_sku
 *
 * @author ruoyi
 * @date 2025-11-10
 */
public class Sku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 商品编码 */
    @Excel(name = "商品编码")
    private String skuCode;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String skuName;

    /** 商品分类ID */
    private Long skuClassId;

    /** 商品分类名称（冗余字段） */
    @Excel(name = "商品分类")
    private String skuClassName;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brand;

    /** 规格 */
    @Excel(name = "规格")
    private String spec;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 商品图片URL */
    @Excel(name = "图片URL")
    private String imageUrl;

    /** 状态：0-下架，1-上架 */
    @Excel(name = "状态", readConverterExp = "0=下架,1=上架")
    private Integer status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSkuCode(String skuCode)
    {
        this.skuCode = skuCode;
    }

    public String getSkuCode()
    {
        return skuCode;
    }
    public void setSkuName(String skuName)
    {
        this.skuName = skuName;
    }

    public String getSkuName()
    {
        return skuName;
    }
    public void setSkuClassId(Long skuClassId)
    {
        this.skuClassId = skuClassId;
    }

    public Long getSkuClassId()
    {
        return skuClassId;
    }
    public void setSkuClassName(String skuClassName)
    {
        this.skuClassName = skuClassName;
    }

    public String getSkuClassName()
    {
        return skuClassName;
    }
    public void setBrand(String brand)
    {
        this.brand = brand;
    }

    public String getBrand()
    {
        return brand;
    }
    public void setSpec(String spec)
    {
        this.spec = spec;
    }

    public String getSpec()
    {
        return spec;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setImageUrl(String imageUrl)
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl()
    {
        return imageUrl;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("skuCode", getSkuCode())
            .append("skuName", getSkuName())
            .append("skuClassId", getSkuClassId())
            .append("skuClassName", getSkuClassName())
            .append("brand", getBrand())
            .append("spec", getSpec())
            .append("unit", getUnit())
            .append("price", getPrice())
            .append("imageUrl", getImageUrl())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}